package com.qf.application.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author l
 * @since 2024-07-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("lender")
@ApiModel(value="Lender对象", description="")
public class Lender extends Model {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "借款id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "贷款金额")
    @TableField("money")
    private BigDecimal money;

    @ApiModelProperty(value = "借款日期")
    @TableField("lender_date")
    private Date lenderDate;

    @ApiModelProperty(value = "还款日期")
    @TableField("repayment_date")
    private Date repaymentDate;

    @ApiModelProperty(value = "贷款期限(天)")
    @TableField("repayment_term")
    private String repaymentTerm;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Long userId;


}
